home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
tex
/
macros
/
source
/
base
/
usrguide.tex
/
node26_mn.html
< prev
next >
Wrap
Text File
|
1995-03-15
|
956b
|
24 lines
<H2><A ID="SECTION000412000000000000000">
Ensuring math mode</A>
</H2><DIV class="LEFT"><B><B><I>
<BR>
<tex2html_image_mark>#decl443#
<BR>
In L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X~2.09, if you wanted a command to work both in math mode and
in text mode, the suggested method was to define something like:
</I></B></B></DIV><PRE><tex2html_verbatim_mark>verbatim53#</PRE><DIV class="LEFT"><B><B><I>
Unfortunately, the || stops || changing size correctly in (for
instance) subscripts or a fraction.
In L<SUP><SMALL>A</SMALL></SUP>T<SMALL>E</SMALL>X2<SUB>e</SUB><#448#><#448#> you can define it thus:
</I></B></B></DIV><PRE><tex2html_verbatim_mark>verbatim54#</PRE><DIV class="LEFT"><B><B><I>
Now || will work correctly in all contexts.
This is because the || does nothing, producing simply
|G_p|, when || is used within math mode; but it ensures that math
mode is entered (and exited) as required when || is used in text
mode.
</I></B></B></DIV>